﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ShanjinPDAUI.Common;

namespace ShanjinPDAUI.ModelEntity
{

    /// <summary>
    /// 满料缓存区
    /// </summary>
    public class FullCache_Entity
    {
        public int id { get; set; }
        /// <summary>
        /// 料架编号
        /// </summary>
        public int Flow { get; set; }
        public int Area { get; set; }
        /// <summary>
        /// 是否有料
        /// </summary>
        private bool ishave;
        public bool IsHave
        {
            get { return ishave; }

            set
            {
                if (value == false)
                {
                    BakingState = (int)Bakingstate.unknow;
                }
                ishave = value;
            }
        }

        public bool IsCreat { get; set; }
        public int MaterialName { get; set; }
        public int Deviceid { get; set; }
        /// <summary>
        ///取料归属区域
        /// </summary>
        public int PickAreaType { get; set; }
        /// <summary>
        ///放料归属区域
        /// </summary>
        public int PutAreaType { get; set; }
        /// <summary>
        /// 动作站点
        /// </summary>
        public int Station { get; set; }
        /// <summary>
        /// 前置站点
        /// </summary>
        public int PreStation { get; set; }

        /// <summary>
        /// 后置站点
        /// </summary>
        public int BackStation { get; set; }
        /// <summary>
        /// 对射光电 检测物料
        /// </summary>
        public string OptronicsIO { get; set; }
        /// <summary>
        /// 三色灯+蜂鸣器
        /// </summary>
        public string LigthIO { get; set; }
        /// <summary>
        /// 前置站点执行高度
        /// </summary>
        public float FrontHeight { get; set; }
        /// <summary>
        /// 目标站点执行高度
        /// </summary>
        public float Height { get; set; }
        /// <summary>
        /// 后置站点执行高度
        /// </summary>
        public float BackHeight { get; set; }
        /// <summary>
        /// 上满料任务
        /// </summary>
        public int Unwind_Full { get; set; }

        /// <summary>
        /// 卸满料任务
        /// </summary>
        public int Unloading_Full { get; set; }
        /// <summary>
        /// 退料任务
        /// </summary>
        public int ReturnTaskType { get; set; }

        /// <summary>
        /// 退料上缓存架任务
        /// </summary>
        public int UnWINDReturnTaskType { get; set; }

        public int Unwind_Null { get; set; }
        /// <summary>
        /// 卸空料任务
        /// </summary>
        public int Unloading_Null { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 横坐标
        /// </summary>
        public int GoodX { get; set; }
        /// <summary>
        /// 纵坐标
        /// </summary>
        public int GoodY { get; set; }

        public int BakingState { get; set; }

        public int Manipulatorid { get; set; }

        public int UnpackingAre { get; set; }
        public string Lot { get; set; }

        public string Code { get; set; }
        public int RgvId { get; set; }

        /// <summary>
        /// 料卷类型
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 料卷宽幅
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 拆包间ID
        /// </summary>
        public int SourId { get; set; }

        /// <summary>
        /// 立库编号
        /// </summary>

        public int SourPostion { get; set; }


        public int Iomodel { get; set; }

        public int Have { get; set; }

        public int Init { get; set; }

        public int Putpoint { get; set; }

        public int Getpoint { get; set; }
        public int DIorder { get; set; }

        public int DOorder { get; set; }

        public int HYGetHeightBig { get; set; }

        public int HYPutHeightBig { get; set; }

        public int HYGetHeightSmal { get; set; }

        public int HYPutHeightSaml { get; set; }

        public float DDGetHeightBig { get; set; }

        public float DDPutHeightBig { get; set; }

        public float DDGetHeightSmal { get; set; }

        public float DDPutHeightSaml { get; set; }

        public string MESName { get; set; }

        public string DIRECTION { get; set; }
        public string TASK_NO { get; set; }
        public int ToPostion { get; set; }

        public int Cachetype { get; set; }
    }
}
